package com.gk.controller;

import com.gk.http.entity.HttpResult;
import com.gk.service.BaseInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("PtypeInfo")
@Api(tags = "商品基本信息")
@Slf4j
public class PtypeController {
    @Autowired
    private BaseInfoService baseInfoService;
    @GetMapping("/uploadPtype")
    @ApiOperation(value = "添加商品信息到国控", response = HttpResult.class)
    public Object uploadPtype(String userCode) {
        log.info("添加商品信息到国控访问成功:" + userCode);
        return baseInfoService.uploadPtypeInfo(userCode);

    }


}
